package cn.xz.text;

import cn.xz.dao.impl.Chose;
import cn.xz.dao.impl.IUserDaoImpl;

import java.sql.SQLException;
import java.util.Scanner;

public class happy_Main {
    public static void main(String[] args) throws SQLException {
        Chose chose = new Chose();
        System.out.println("1.增加2.删除3.修改4.全查5.单查6.登录7.连查");
        Scanner scanner =new Scanner(System.in);
        int num = scanner.nextInt();
        switch(num){
            case 1:
                chose.addHappy();
                break;
            case 2:
                chose.deleteHappy();
                break;
            case 3:
                chose.updateHappy();
                break;
            case 4:
                chose.getAll();
                break;
            case 5:
                chose.getHappyById();
                break;
            case 6:
                chose.loginUser();
                break;
            case 7:
                chose.userAndDate();

                break;
            default:
                break;
        }
        main(args);



    }
}
